<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\Resource;

class Tixian extends Resource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'alipay_account' =>$this->alipay_account,
            'status' =>$this->status,
            'tixianmoney' =>$this->tixianmoney,
            'created_at' => $this->created_at->toDateString(),
            'ym' => $this->created_at->toTimeString(),
        ];
    }
}
